using System;
using System.Data;
using System.Configuration;

using System.Collections;
using System.Web;
using System.Web.Security;

using System.Web.UI;
using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

using Component;
public partial class BackEnd_TopMenu : System.Web.UI.UserControl
{
    public string tam1 = "";
    public string tam2 = "";

    protected void Page_Load(object sender, EventArgs e)
    {
        GetContentManagement();

    }
    void GetContentManagement()
    {
        string tam = "";
        foreach (Component.Menu _contentManagement in MenuDB.GetAll(true))
        {
            if (_contentManagement.Id != 18 && _contentManagement.Id != 14)
            {
                tam = "<div class=\"Menu\"><a href=\"" + _contentManagement.Url + "\">";
                tam += _contentManagement.Name;
                tam += "</a></div><div class=\"MenuSpace\">&nbsp;&nbsp;&nbsp;&nbsp</div>";
                if (_contentManagement.System.Trim() == "1")
                    tam1 += tam;
                else
                    tam2 += tam;
            }
        }
       
    }

}
